FROM java:8

RUN mkdir -p /springJpa

WORKDIR /springJpa

COPY ./target/springJpa*.jar /demo/app.jar

EXPOSE 8080

ENV TZ=Asia/Shanghai JAVA_OPTS="-XX:+UseContainerSupport -XX:InitialRAMPercentage=50 -XX:MaxRAMPercentage=80 -Xms1024m -Xmx1024m -Djava.security.egd=file:/dev/./urandom"

CMD java -jar app.jar $JAVA_OPTS



